<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>

    // var [a, b, ...c] = [1, 2, 3, 4, 5, 6, 7, 8, 9]
    // console.log(a, b, c)

    // var [a, b, [c, d, [e]], [f, g]] = [1, 2, [3, 4, [5]], [6, 7]]
    // console.log(a, b, c, d, e, f, g)


    var obj = {
        username: '蔡徐坤',
        age: '98年',
        hobby: '唱，跳，rap,篮球',
        say() {
            console.log('全民制作人们大家好我是练习时长两年半的个人练习生蔡徐坤喜欢唱、跳、rap、篮球music鸡你太美！baby 鸡你太美！baby鸡你实在是太美！baby 鸡你太美！baby迎面走来的你让我如此蠢蠢欲动这种感觉我从未有Cause I got a crush on you who you在今后的节目中我还准备了很多我自己作词、作曲、编舞的原创作品期待的话请多多为我投票吧')
        }
    }
    var { username, hobby, age, say } = obj
    console.log(username, age, hobby)
    say()





    var obj = {
        name: '蔡徐坤',
        age: 98,
        hobby: ['sing', 'dance', 'rap', 'basketball'],
        say: {
            your: '全民制作人大家好',
            talk: '我是练习时长两年半的'
        },
        dance: {
            ji: '鸡你太美',
            oh: 'oh~baby'
        }
    }


    var { name, age, dance: { ji: abb, oh }, say: { your, talk }, hobby: [a, b, c, d] } = obj

    console.log(name, age, your, talk, a, b, c, d, abb, oh);
</script>

</html>